import request from "@/utils/request";
const BASE_URL = "/api/v1";
const SETTLE_BASE_URL = "/api/v1/audit";
const SETTLE_COMMON_URL = "/api/v1/common";
/**
 * 商户入驻申请
 * @param {*} data
 * @returns
 */

export function getMerchantSettle(data) {
  return request({
    url: `${BASE_URL}/enter/add`,
    headers: {
      isToken: false,
    },
    method: "post",
    data: data,
  });
}

// 获取用户详细信息
export function getApplyList() {
  return request({
    url: `${SETTLE_BASE_URL}/apply/list`,
    method: "get",
  });
}

// 获取手机验证码
export function getCodeSms(phone) {
  return request({
    url: `${SETTLE_COMMON_URL}/captchaSms`,
    headers: {
      isToken: false,
    },
    method: "get",
    timeout: 20000,
    params: {
      mobile: phone,
    },
  });
}
